Skip to content

feat: Add crystal extension features#15

Open
AdaWorldAPI wants to merge 25 commits intomainfrom
feature/unify-crystal-v2
Open

feat: Add crystal extension features#15
AdaWorldAPI wants to merge 25 commits intomainfrom
feature/unify-crystal-v2

Conversation

@AdaWorldAPI
Copy link
Owner

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 77f13bd76f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +148 to +150
let hyperplanes: Vec<Fingerprint> = (0..P)
.map(|i| Fingerprint::from_seed(0xPR0JECT10N + i as u64))
.collect();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Replace invalid projection seed literal

When the codebook feature is enabled, this module fails to compile because 0xPR0JECT10N is not a valid Rust numeric literal (non-hex digits like P/R/O). This prevents any build that includes the hierarchical codebook from succeeding; use a valid integer seed instead.

Useful? React with 👍 / 👎.

Comment on lines +157 to +159
let satisfaction = if success { 0.9 } else { 0.4 };
let qualia = Qualia::from_metrics(0.2, 0.3, satisfaction);
let moment = MomentBuilder::new(&self.id, content).build().with_qualia(qualia);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Mark apply moments as Application

Calling LearningSession::apply currently creates a Moment with the builder’s default type (Encounter), because no MomentType::Application is set before build(). Any downstream logic that filters or analyzes by MomentType::Application will miss these moments, even though the session phase is Apply.

Useful? React with 👍 / 👎.

Comment on lines +166 to +168
let novelty = if breakthrough_count > 0 { 0.7 } else { 0.3 };
let qualia = Qualia::from_metrics(novelty, 0.4, 0.8);
let moment = MomentBuilder::new(&self.id, reflection).build().with_qualia(qualia);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Mark meta_reflect moments as MetaReflection

Similarly, LearningSession::meta_reflect builds a moment without setting MomentType::MetaReflection, so the moment is recorded as Encounter. This means meta-reflection events cannot be distinguished from regular encounters, which breaks any filtering or metrics keyed on MomentType::MetaReflection.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant